<?php $__env->startSection('extra_css'); ?>
    <title>Tag : <?php echo e($tag->title); ?></title>

    <meta name="keywords" content="<?php echo e($settings_seo->seo_keywords); ?>">
    <meta name="description" content="<?php echo e($settings_seo->seo_description); ?>">

    <!--Twitter Card-->
    <meta property="twitter:card" content="summary"/>
    <meta property="twitter:site" content="<?php echo e($settings_social->twitter_handle); ?>"/>
    <meta property="twitter:title" content="Tag : <?php echo e($tag->title); ?>"/>
    <meta property="twitter:description"
          content="<?php echo e(\Illuminate\Support\Str::limit(trim(strip_tags($settings_seo->seo_description)),300)); ?>"/>
    <meta property="twitter:image" content="<?php echo e($settings_general->logo_120); ?>"/>
    <meta name="twitter:creator" content="<?php echo e($settings_social->twitter_handle); ?>">
    <meta property="twitter:url" content="<?php echo e($settings_general->site_url); ?>"/>

    <!--Og tags-->
    <meta property="og:site_name" content="<?php echo e($settings_general->site_title); ?>"/>
    <meta property="og:title" content="Tag : <?php echo e($tag->title); ?>"/>
    <meta property="og:description"
          content="<?php echo e(\Illuminate\Support\Str::limit(trim(strip_tags($settings_seo->seo_description)),300)); ?>"/>
    <meta property="og:type" content="article"/>
    <meta property="og:url" content="<?php echo e($settings_general->site_url); ?>"/>
    <meta property="og:image" content="<?php echo e($settings_general->logo_120); ?>"/>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
    <div class="container main-wrapper">
        <div class="main-content mag-content clearfix">

            <div class="row blog-content">
                <div class="col-md-8">
                    <h3 class="tag-title">Tag: <span><?php echo e($tag->title); ?></span></h3>

                    <?php if(sizeof($posts) == 0): ?>
                        <h4>No posts found for this tag - <?php echo e($tag->title); ?></h4>

                        <?php if(!empty($ads[\App\Ads::TYPE_BETWEEN_TAG_INDEX])): ?>
                            <div class="widget adwidget">
                                <?php echo $ads[\App\Ads::TYPE_BETWEEN_TAG_INDEX]->code; ?>

                            </div>
                        <?php endif; ?>

                    <?php endif; ?>

                    <?php foreach($posts as $index => $post): ?>
                        <article class="simple-post simple-big clearfix">
                            <div class="simple-thumb">

                                <a href="/<?php echo e($post->slug); ?>">
                                    <img src="<?php echo e($post->featured_image); ?>" alt="">
                                </a>
                            </div>
                            <header>
                                <p class="simple-share">
                                    <a href="/category/<?php echo e($post->category->slug); ?>"><?php echo e($post->category->title); ?></a> /
                                    by <a href="/author/<?php echo e($post->author->slug); ?>"><?php echo e($post->author->name); ?></a> -
                                    <span><i class="fa fa-clock-o"></i> <?php echo e($post->created_at->diffForHumans()); ?></span>
                                </p>

                                <h3>
                                    <a href="/<?php echo e($post->slug); ?>"><?php echo e($post->title); ?></a>
                                </h3>

                                <p class="excerpt">
                                    <?php echo str_limit(strip_tags($post->description),250,'...'); ?>

                                </p>
                            </header>
                        </article>

                        <?php if($index == ceil((sizeof($posts)/2))): ?>
                            <?php if(!empty($ads[\App\Ads::TYPE_BETWEEN_TAG_INDEX])): ?>
                                <div class="widget adwidget">
                                    <?php echo $ads[\App\Ads::TYPE_BETWEEN_TAG_INDEX]->code; ?>

                                </div>
                            <?php endif; ?>
                        <?php endif; ?>
                    <?php endforeach; ?>

                    <div class="load-more">
                        <?php echo $posts->render(); ?>

                    </div>

                </div>

                <div class="col-md-4">
                    <?php echo $__env->make('layouts.sidebar', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                </div>
            </div>

        </div>
    </div>
<?php $__env->stopSection(); ?>


<?php echo $__env->make('layouts.master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>